import java.util.Scanner;

public class sex {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入小李的性别");
        String Lisex = sc.nextLine();
        System.out.println("请输入小王的性别");
        String Wangsex = sc.nextLine();
        if(Lisex.equals(Wangsex)){
            System.out.println("你们不能结婚");
        }else {
            System.out.println("恭喜，你们可以结婚");
        }
    }
}
